/*
 * iEditor - The text editor for internet
 * Copyright (C) 2003-2004 Frederico Caldeira Knabben
 * 
 * For further information visit:
 * 		http://www.Owncent.com/
 * 
 * File Name: iEditorDesigner.cs
 * 	The EditorDesigner class defines the editor visualization at design 
 * 	time. 
 * 
 * Version:  2.1
 * Modified: 2004-05-31 23:17:24
 * 
 * File Authors:
 * 		Frederico Caldeira Knabben (iEditor@Owncent.com)
 */

using System ;
using System.Globalization ;

namespace AX.WCLib
{
	public class iEditorDesigner : System.Web.UI.Design.ControlDesigner
	{
		public iEditorDesigner()
		{
		}

		public override string GetDesignTimeHtml() 
		{
			iEditor oControl = (iEditor)Component ;
			return String.Format( CultureInfo.InvariantCulture,
				"<div><table width=\"{0}\" height=\"{1}\" bgcolor=\"#f5f5f5\" bordercolor=\"#c7c7c7\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\"><tr><td valign=\"middle\" align=\"center\">iEditor V2 - <b>{2}</b></td></tr></table></div>",
					oControl.Width,
					oControl.Height,
					oControl.ID ) ;
		}
	}
}
